package com.example.feidaolumanager.api

import com.example.feidaolumanager.pojo.LoginVo
import com.example.feidaolumanager.pojo.RegisterDTO
import com.example.feidaolumanager.pojo.ResponseDTO
import com.example.feidaolumanager.pojo.User
import retrofit2.http.Body
import retrofit2.http.POST

interface LoginService {

    @POST("/appuser/applogin")
    suspend fun login(@Body loginVo: LoginVo): ResponseDTO<User>


    @POST("/appuser/appregistration")
    suspend fun register(@Body registerDTO: RegisterDTO): ResponseDTO<Boolean>
}